package nl.boelen.game.level.tiles;

import nl.boelen.game.graphics.Screen;
import nl.boelen.game.graphics.SpriteSheet;
import nl.boelen.game.level.Level;

public class AlphaTile extends Tile {

    protected int tileId;

    public AlphaTile(int id, int x, int y) {
        super(id, true);
        tileId = x + (y * SpriteSheet.getTotalTilesWidth());
    }

    @Override
    public void render(Screen screen, Level level, int x, int y) {
        screen.renderTile(x, y, tileId, hasAlpha);
    }
}
